package com.neuedu.carsystem.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.carsystem.dao.EmployeeDao;
import com.neuedu.carsystem.model.Employee;
import com.neuedu.carsystem.service.EmployeeService;
@Service
public class EmployeeServiceImpl implements EmployeeService{
	@Autowired 
	public EmployeeDao employeeDao;

	@Override
	public List<Employee> findEmployeeAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return employeeDao.findEmployeeAll(map);
	}

	@Override
	public Employee findById(int id) {
		// TODO Auto-generated method stub
		return employeeDao.findById(id);
	}

	@Override
	public int addEmployee(Employee u) {
		// TODO Auto-generated method stub
		return employeeDao.addEmployee(u);
	}

	@Override
	public int deleteEmployee(int id) {
		// TODO Auto-generated method stub
		return employeeDao.deleteEmployee(id);
	}

	@Override
	public int updateEmployee(int u) {
		// TODO Auto-generated method stub
		return employeeDao.updateEmployee(u);
	}

	@Override
	public int countEmployee() {
		// TODO Auto-generated method stub
		return employeeDao.countEmployee();
	}
	

}
